import request from '@/utils/request'

export default {

    //分页查询banner
    pageBanner(current,limit) {
        return request({
            url: `/educms/adminBanner/pageBanner/${current}/${limit}`,
            method: 'get'
        })
    },

    //删除banner
    deleteBanner(bannerId) {
        return request({
            url: `/educms/adminBanner/deleteBanner/${bannerId}`,
            method: 'delete'
        })
    },

    //添加banner
    addBanner(crmBanner) {
        return request({
            url: `/educms/adminBanner/addBanner`,
            method: 'post',
            data:crmBanner
        })
    },

    //查询banner
    selectBannerById(bannerId){
        return request({
            url: `/educms/adminBanner/selectBannerById/${bannerId}`,
            method: 'get'
        })
    },

    //修改banner
    updateBanner(crmBanner){
        return request({
            url: `/educms/adminBanner/updateBanner`,
            method: 'post',
            data:crmBanner
        })
    },
    
}